Skip to content

fix: preserve Dock behavior after display reconnection - #1891

Merged
18202781743 merged 1 commit into
linuxdeepin:masterfrom
gugullll:fix/hotplug2
Nov 27, 2026
Merged

18202781743 merged 1 commit into
linuxdeepin:masterfrom
gugullll:fix/hotplug2

Conversation

@gugullll

@gugullll gugullll commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

该PR是对于 #1800 未覆盖全部show场景的调整。

  1. Restore layer-shell integration when platform windows are created.
  2. Refresh edge wakeup areas when screens are added or primary changes.
  3. Rebind overlap monitoring when the Dock changes screens.

Log: Restore Dock window roles and hiding behavior after display reconnects.

Influence:

  1. Reconnect the only display and verify the Dock remains a layer surface.
  2. In always-hidden mode, reconnect and reveal the Dock from the screen edge.
  3. In smart-hide mode, reconnect with a maximized window and verify hiding.

fix: 修复显示器重连后任务栏角色与隐藏行为异常

  1. 平台窗口创建时自动恢复 layer-shell 集成,保留构造阶段补绑定。
  2. 屏幕加入或主屏切换时更新边缘唤醒区域。
  3. 任务栏切换屏幕时重新注册遮挡检测区域。

Log: 修复显示器重连后任务栏变成普通窗口、无法唤出或不再隐藏的问题。

Influence:

  1. 拔插唯一显示器,确认任务栏保持 layer-shell 角色。
  2. 一直隐藏模式下重连显示器,确认可从屏幕边缘唤出任务栏。
  3. 智能隐藏模式下保持窗口最大化并重连,确认任务栏恢复隐藏。

Summary by Sourcery

Preserve Dock window roles, edge wakeup, and hiding behavior across display reconnects and screen changes.

Bug Fixes:

  • Restore Dock layer-shell roles and visibility behavior after display reconnection.
  • Refresh edge wakeup areas when screens are added or the primary screen changes.
  • Rebind Dock overlap monitoring when the Dock moves to another screen.

Enhancements:

  • Automatically restore layer-shell integration when platform surfaces are recreated without changing normal Dock display behavior.

@sourcery-ai

sourcery-ai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Restore layer-shell integration when a Wayland platform window is recreated, and move that responsibility from DockPanel into DLayerShellWindow.

  • frame/layershell/dlayershellwindow.cpp L9, L265-266, L279-295
  • frame/layershell/dlayershellwindow.h L151 (removed lines), L179-180
  • panels/dock/dockpanel.cpp L9 (removed lines), L514

Refresh Dock edge wake areas when screens are added or the primary screen changes.

  • panels/dock/dockhelper.cpp L312-316

Rebind overlap monitoring when the Dock changes screens.

  • panels/dock/waylanddockhelper.cpp L150

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 4 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="panels/dock/waylanddockhelper.cpp" line_range="150" />
<code_context>

     connect(m_panel, &DockPanel::positionChanged, this, &WaylandDockHelper::updateRegionWatchPos);
     connect(m_panel, &DockPanel::dockSizeChanged, this, &WaylandDockHelper::updateRegionWatchPos);
+    connect(m_panel, &DockPanel::dockScreenChanged, this, &WaylandDockHelper::updateRegionWatchPos);
     connect(m_panel, &DockPanel::rootObjectChanged, this, &WaylandDockHelper::updateRegionWatchPos);

</code_context>
<issue_to_address>
**Dock crashes without a screen**

When the last display is removed and the window has no screen, `dockScreenChanged` calls `updateRegionWatchPos()`, which dereferences `m_panel->window()->screen()` without checking it; the Dock crashes during disconnection.

Check that the window and its screen are non-null before dereferencing them in `updateRegionWatchPos()`.
</issue_to_address>

### Comment 2
<location path="panels/dock/dockpanel.cpp" line_range="514" />
<code_context>
     if (!waylandScreen || !waylandScreen->output())
         return;
-    if (DS_NAMESPACE::DLayerShellWindow::get(win)->ensureWaylandShellIntegration())
-        win->show();
+    win->show();
 }
</code_context>
<issue_to_address>
**Dock appears without layer-shell integration**

When layer-shell integration fails during a primary-screen change, `updateDockScreen()` calls `win->show()` regardless of whether `installWaylandShellIntegration()` succeeded, so the window is mapped as an ordinary window instead of remaining hidden.

Show the window only after layer-shell integration succeeds.

Also at `frame/layershell/dlayershellwindow.cpp:287`.
</issue_to_address>

### Comment 3
<location path="frame/layershell/dlayershellwindow.h" line_range="151" />
<code_context>
     void setCloseOnDismissed(bool close);
     bool closeOnDismissed() const;

-    bool ensureWaylandShellIntegration();
-
     /** Whether a system resize is pending or active on this layer surface. */
</code_context>
<issue_to_address>
**Downstream callers no longer compile**

When an external consumer uses the previously public method, a downstream caller that invokes `DLayerShellWindow::ensureWaylandShellIntegration()` fails to compile because this public method is removed from the exported class.

Keep a public compatibility method that delegates to the new integration logic, or explicitly version the API break.
</issue_to_address>

### Comment 4
<location path="panels/dock/waylanddockhelper.cpp" line_range="150" />
<code_context>

     connect(m_panel, &DockPanel::positionChanged, this, &WaylandDockHelper::updateRegionWatchPos);
     connect(m_panel, &DockPanel::dockSizeChanged, this, &WaylandDockHelper::updateRegionWatchPos);
+    connect(m_panel, &DockPanel::dockScreenChanged, this, &WaylandDockHelper::updateRegionWatchPos);
     connect(m_panel, &DockPanel::rootObjectChanged, this, &WaylandDockHelper::updateRegionWatchPos);

</code_context>
<issue_to_address>
**Overlap monitoring stays on old screen**

When the Dock's logical screen changes before its QWindow screen is synchronized, when `dockScreenChanged` fires before `m_panel->window()->screen()` is synchronized, `updateRegionWatchPos()` reads the old screen and sends its output to `set_region()`. The later window-screen synchronization does not refresh the region watch, so smart-hide monitoring remains bound to the old output and the Dock can fail to hide on the new screen.

Rebind the region watch after the QWindow has moved to the new screen, or use the changed screen's output and ensure it is valid.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread panels/dock/waylanddockhelper.cpp Resolved
Comment thread panels/dock/dockpanel.cpp Resolved
Comment thread frame/layershell/dlayershellwindow.h Resolved
Comment thread panels/dock/waylanddockhelper.cpp Resolved
@deepin-ci-robot

deepin-ci-robot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ OBS CI 构建警告日志 (Commit: 9709656b)

提示:以下为 OBS CI 构建中 Lintian 检测到的警告信息,默认折叠,点击展开查看详情。完整日志请参阅对应构建状态链接。

deepin_develop / aarch64 (Lintian 警告: 15 条)
[  523s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  523s] N: 
[  523s] N:   The desktop entry specifies a Command that does not match any of the
[  523s] N:   executables shipped in the package.
[  523s] N:   
[  523s] N:   This condition is often caused by a typo, or the desktop file was not
[  523s] N:   updated after the installed path of the executable was modified.
[  523s] N:   
[  523s] N:   Packages should ship executables that are used as commands in desktop
[  523s] N:   files.
[  523s] N: 
[  523s] N:   Visibility: warning
[  523s] N:   Show-Always: no
[  523s] N:   Check: menu-format
[  523s] N: 
[  523s] N:
[  523s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/aarch64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/aarch64-linux-gnu/libds-notification-shared.so]
[  523s] N: 
[  523s] N:   Although this package is not a "-dev" package, it installs a
[  523s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  523s] N:   library. When the link doesn't include the version number, it is used by
[  523s] N:   the linker when other programs are built against this shared library.
[  523s] N:   
[  523s] N:   Shared libraries are supposed to place such symbolic links in their
[  523s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  523s] N:   library package.
[  523s] N:   
[  523s] N:   However, if this is a small package which includes the runtime and the
[  523s] N:   development libraries, this is not a bug. In the latter case, please
[  523s] N:   override this warning.
[  523s] N: 
[  523s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  523s] N:   Manual for details.
[  523s] N: 
[  523s] N:   Visibility: warning
[  523s] N:   Show-Always: no
[  523s] N:   Check: libraries/shared/links
[  523s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  523s] N: 
[  523s] N:
[  523s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  523s] N: 
[  523s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  523s] N:   a manual page
[  523s] N:   
[  523s] N:   Note that though the man program has the capability to check for several
[  523s] N:   program names in the NAMES section, each of these programs should have its
[  523s] N:   own manual page (a symbolic link to the appropriate manual page is
[  523s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  523s] N:   support this.
[  523s] N:   
[  523s] N:   If the name of the manual page differs from the binary by case, man may be
[  523s] N:   able to find it anyway; however, it is still best practice to match the
[  523s] N:   exact capitalization of the executable in the manual page.
[  523s] N:   
[  523s] N:   If the manual pages are provided by another package on which this package
[  523s] N:   depends, Lintian may not be able to determine that manual pages are
[  523s] N:   available. In this case, after confirming that all binaries do have manual
[  523s] N:   pages after this package and its dependencies are installed, please add a
[  523s] N:   Lintian override.
[  523s] N: 
[  523s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  523s] N:   for details.
[  523s] N: 
[  523s] N:   Visibility: warning
[  523s] N:   Show-Always: no
[  523s] N:   Check: documentation/manual
[  523s] N:   Renamed from: binary-without-manpage
[  523s] N: 
[  523s] N:
[  523s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  523s] N: 
[  523s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  523s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  523s] N:   insensitive).
[  523s] N:   
[  523s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  523s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  523s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  523s] N:   package (not intended for Debian), you can suppress this warning by
[  523s] N:   putting "local" in the version number or "local package" on the first line
[  523s] N:   of the changelog entry.
[  523s] N: 
[  523s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  523s] N:   Developer's Reference for details.
[  523s] N: 
[  523s] N:   Visibility: warning
[  523s] N:   Show-Always: no
[  523s] N:   Check: nmu
[  523s] N:   Renamed from: changelog-should-mention-nmu
[  523s] N: 
[  523s] N:
[  523s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  523s] N: 
[  523s] N:   The package name of a library package should usually reflect the soname of
[  523s] N:   the included library. The package name can determined from the library
[  523s] N:   file name with the following code snippet:
[  523s] N:   
[  523s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  523s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  523s] N: 
[  523s] N:   Visibility: warning
[  523s] N:   Show-Always: no
[  523s] N:   Check: libraries/shared/soname
[  523s] N: 
[  523s] N:
[  523s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  523s] N:
[  523s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  523s] N:
[  523s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u056 [debian/changelog:1]
[  523s] N: 
[  523s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  523s] N:   native package). This is to prevent stealing version numbers from the
[  523s] N:   maintainer.
[  523s] N:   
[  523s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  523s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  523s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  523s] N:   package (not intended for Debian), you can suppress this warning by
[  523s] N:   putting "local" in the version number or "local package" on the first line
[  523s] N:   of the changelog entry.
[  523s] N: 
[  523s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  523s] N:   Developer's Reference for details.
[  523s] N: 
[  523s] N:   Visibility: warning
[  523s] N:   Show-Always: no
[  523s] N:   Check: nmu
[  523s] N: 
[  523s] N:
[  523s] W: dde-shell: unknown-section DDE
[  523s] N: 
[  523s] N:   The "Section:" field in this package's control file is not one of the
[  523s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  523s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  523s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  523s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  523s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  523s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  523s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  523s] N:   
[  523s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  523s] N:   "non-free-firmware/" if the package is in the according archive area.
[  523s] N: 
[  523s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  523s] N:   details.
[  523s] N: 
[  523s] N:   Visibility: warning
[  523s] N:   Show-Always: no
[  523s] N:   Check: fields/section
[  523s] N: 
[  523s] N:
[  523s] W: dde-shell-example: unknown-section DDE
[  523s] N:
[  523s] W: libdde-shell: unknown-section DDE
[  523s] N:
[  523s] W: libdde-shell-dev: unknown-section DDE
[  523s] N:
[  523s] W: libdde-shell-dock: unknown-section DDE
[  523s] N:
[  523s] W: libdde-shell-dock-dev: unknown-section DDE
[  523s] Warning: mkbaselibs missing in build root, skipping baselibs
deepin_develop / x86_64 (Lintian 警告: 15 条)
[  595s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  595s] N: 
[  595s] N:   The desktop entry specifies a Command that does not match any of the
[  595s] N:   executables shipped in the package.
[  595s] N:   
[  595s] N:   This condition is often caused by a typo, or the desktop file was not
[  595s] N:   updated after the installed path of the executable was modified.
[  595s] N:   
[  595s] N:   Packages should ship executables that are used as commands in desktop
[  595s] N:   files.
[  595s] N: 
[  595s] N:   Visibility: warning
[  595s] N:   Show-Always: no
[  595s] N:   Check: menu-format
[  595s] N: 
[  595s] N:
[  595s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/x86_64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/x86_64-linux-gnu/libds-notification-shared.so]
[  595s] N: 
[  595s] N:   Although this package is not a "-dev" package, it installs a
[  595s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  595s] N:   library. When the link doesn't include the version number, it is used by
[  595s] N:   the linker when other programs are built against this shared library.
[  595s] N:   
[  595s] N:   Shared libraries are supposed to place such symbolic links in their
[  595s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  595s] N:   library package.
[  595s] N:   
[  595s] N:   However, if this is a small package which includes the runtime and the
[  595s] N:   development libraries, this is not a bug. In the latter case, please
[  595s] N:   override this warning.
[  595s] N: 
[  595s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  595s] N:   Manual for details.
[  595s] N: 
[  595s] N:   Visibility: warning
[  595s] N:   Show-Always: no
[  595s] N:   Check: libraries/shared/links
[  595s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  595s] N: 
[  595s] N:
[  595s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  595s] N: 
[  595s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  595s] N:   a manual page
[  595s] N:   
[  595s] N:   Note that though the man program has the capability to check for several
[  595s] N:   program names in the NAMES section, each of these programs should have its
[  595s] N:   own manual page (a symbolic link to the appropriate manual page is
[  595s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  595s] N:   support this.
[  595s] N:   
[  595s] N:   If the name of the manual page differs from the binary by case, man may be
[  595s] N:   able to find it anyway; however, it is still best practice to match the
[  595s] N:   exact capitalization of the executable in the manual page.
[  595s] N:   
[  595s] N:   If the manual pages are provided by another package on which this package
[  595s] N:   depends, Lintian may not be able to determine that manual pages are
[  595s] N:   available. In this case, after confirming that all binaries do have manual
[  595s] N:   pages after this package and its dependencies are installed, please add a
[  595s] N:   Lintian override.
[  595s] N: 
[  595s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  595s] N:   for details.
[  595s] N: 
[  595s] N:   Visibility: warning
[  595s] N:   Show-Always: no
[  595s] N:   Check: documentation/manual
[  595s] N:   Renamed from: binary-without-manpage
[  595s] N: 
[  595s] N:
[  595s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  595s] N: 
[  595s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  595s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  595s] N:   insensitive).
[  595s] N:   
[  595s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  595s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  595s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  595s] N:   package (not intended for Debian), you can suppress this warning by
[  595s] N:   putting "local" in the version number or "local package" on the first line
[  595s] N:   of the changelog entry.
[  595s] N: 
[  595s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  595s] N:   Developer's Reference for details.
[  595s] N: 
[  595s] N:   Visibility: warning
[  595s] N:   Show-Always: no
[  595s] N:   Check: nmu
[  595s] N:   Renamed from: changelog-should-mention-nmu
[  595s] N: 
[  595s] N:
[  595s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  595s] N: 
[  595s] N:   The package name of a library package should usually reflect the soname of
[  595s] N:   the included library. The package name can determined from the library
[  595s] N:   file name with the following code snippet:
[  595s] N:   
[  595s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  595s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  595s] N: 
[  595s] N:   Visibility: warning
[  595s] N:   Show-Always: no
[  595s] N:   Check: libraries/shared/soname
[  595s] N: 
[  595s] N:
[  595s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  595s] N:
[  595s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  595s] N:
[  595s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u056 [debian/changelog:1]
[  595s] N: 
[  595s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  595s] N:   native package). This is to prevent stealing version numbers from the
[  595s] N:   maintainer.
[  595s] N:   
[  595s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  595s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  595s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  595s] N:   package (not intended for Debian), you can suppress this warning by
[  595s] N:   putting "local" in the version number or "local package" on the first line
[  595s] N:   of the changelog entry.
[  595s] N: 
[  595s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  595s] N:   Developer's Reference for details.
[  595s] N: 
[  595s] N:   Visibility: warning
[  595s] N:   Show-Always: no
[  595s] N:   Check: nmu
[  595s] N: 
[  595s] N:
[  595s] W: dde-shell: unknown-section DDE
[  595s] N: 
[  595s] N:   The "Section:" field in this package's control file is not one of the
[  595s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  595s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  595s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  595s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  595s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  595s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  595s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  595s] N:   
[  595s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  595s] N:   "non-free-firmware/" if the package is in the according archive area.
[  595s] N: 
[  595s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  595s] N:   details.
[  595s] N: 
[  595s] N:   Visibility: warning
[  595s] N:   Show-Always: no
[  595s] N:   Check: fields/section
[  595s] N: 
[  595s] N:
[  595s] W: dde-shell-example: unknown-section DDE
[  595s] N:
[  595s] W: libdde-shell: unknown-section DDE
[  595s] N:
[  595s] W: libdde-shell-dev: unknown-section DDE
[  595s] N:
[  595s] W: libdde-shell-dock: unknown-section DDE
[  595s] N:
[  595s] W: libdde-shell-dock-dev: unknown-section DDE
[  595s] Warning: mkbaselibs missing in build root, skipping baselibs

Comment thread frame/layershell/dlayershellwindow.cpp Resolved
18202781743
18202781743 previously approved these changes Nov 27, 2026
1. Restore layer-shell integration when platform windows are created.
2. Refresh edge wakeup areas when screens are added or primary changes.
3. Rebind overlap monitoring when the Dock changes screens.

Influence:
1. Reconnect the only display and verify the Dock remains a layer surface.
2. In always-hidden mode, reconnect and reveal the Dock from the screen edge.
3. In smart-hide mode, reconnect with a maximized window and verify hiding.

fix: 修复显示器重连后任务栏角色与隐藏行为异常

1. 平台窗口创建时自动恢复 layer-shell 集成,保留构造阶段补绑定。
2. 屏幕加入或主屏切换时更新边缘唤醒区域。
3. 任务栏切换屏幕时重新注册遮挡检测区域。

Influence:
1. 拔插唯一显示器,确认任务栏保持 layer-shell 角色。
2. 一直隐藏模式下重连显示器,确认可从屏幕边缘唤出任务栏。
3. 智能隐藏模式下保持窗口最大化并重连,确认任务栏恢复隐藏。

Log: Restore Dock window roles and hiding behavior after display reconnects.
Log: 修复显示器重连后任务栏变成普通窗口、无法唤出或不再隐藏的问题。
Issue: None
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, gugullll

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@18202781743
18202781743 merged commit 20dd983 into linuxdeepin:master Nov 27, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants